package com.tjmc.tiomscore.dao;

import com.tjmc.tiomscore.model.TiCard;
import com.tjmc.tiomscore.model.TiCardExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TiCardMapper {
    long countByExample(TiCardExample example);

    int deleteByExample(TiCardExample example);

    int deleteByPrimaryKey(Long id);

    int insert(TiCard record);

    int insertSelective(TiCard record);

    List<TiCard> selectByExample(TiCardExample example);

    TiCard selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") TiCard record, @Param("example") TiCardExample example);

    int updateByExample(@Param("record") TiCard record, @Param("example") TiCardExample example);

    int updateByPrimaryKeySelective(TiCard record);

    int updateByPrimaryKey(TiCard record);

    void truncateTable();

    void insertDataFromTranPtnCard();
}